{% extends "layout.html" %}
{% block body %}
<div class="page-header">
  <ul class="breadcrumb">
    <li><a href="/">Home</a></li>
    <li><a href="{{ url_for('classify', type=book.classify) }}">{{ book.classify }}</a></li>
    <li><a href="{{ url_for('book', id=book.id) }}">{{ book.en_title }}</a></li>
    <li class="active">{{ chapter.en_name }}</li>
  </ul>
  <h1 id="containers">{{ chapter.en_name }}</h1>
</div>

<div class="jumbotron">
  <div class="entries">
  {% for content in contents %}
    <p>{{ content.en_text }}</p>
  {% else %}
    <p><em>Unbelievable.  No contents here so far</em></p>
  {% endfor %}

    <ul class="pager">
        {% if chapter_previous %}
        <li class="previous"><a href="{{ url_for('book_chapter', book_id=chapter_previous.book_id, chapter_id=chapter_previous.id) }}">&larr; Previous Chapter</a></li>
        {% else %}
        <li class="previous disabled"><a href="#">&larr; Previous Chapter</a></li>
        {% endif %}
        {% if chapter_next %}
        <li class="next"><a href="{{ url_for('book_chapter', book_id=chapter_next.book_id, chapter_id=chapter_next.id) }}">Next Chapter &rarr;</a></li>
        {% else %}
        <li class="next disabled"><a href="#">Next Chapter &rarr;</a></li>
        {% endif %}
    </ul>
  </div>
</div>
{% endblock %}

{% block title %}{{ chapter.en_name }} - {{ book.en_title }},{{ book.classify }} novel - JiangHu Novel{% endblock %}
{% block keywords %}{{ chapter.en_name }},{{ book.en_title }},{{ book.classify }} novel,{{ book.author }}{% endblock %}
{% block description %}{{ description }}{% endblock %}
